package com.android.jingweiapp.application;

import android.app.Application;

import com.android.jingweiapp.util.ImagePipelineConfigFactory;
import com.facebook.drawee.backends.pipeline.Fresco;

/**
 * Created by cuiwenrui-pc on 15/10/31.
 */
public class ApplicationContext extends Application {

    private static ApplicationContext sInstance;

    public static ApplicationContext getInstance() {
        return sInstance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        Fresco.initialize(this, ImagePipelineConfigFactory.getImagePipelineConfig(this));
        sInstance = this;
    }

}
